<?php
namespace app\admin\controller;
use app\common\model\Express as ExpressModel;


class Express extends Base
{   
    public $expressModel;
    public function __construct () {
        parent::__construct();
    }

    /* 
     快递费列表
     */
    public function list()
    {
       $list = ExpressModel::getAll(1,'id asc');
       return returnJson(0,'',$list);
    }

    /* 修改 */
    public function edit () {
        $input = input();
        $res = ExpressModel::update($input);
        if($res) {
            return returnJson(0,'修改成功');
        }
        return returnJson(1,'修改失败，请重试');
    }

}
